<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>

        var obj={
            name :"dsd",
            age:12
        }

        console.log(obj)

        obj.age=50;
        // 删除对象内容
        delete obj.age
        // 添加内容
        obj.name ="sss"

        console.log(obj)
    </script>

</body>
</html>